<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="./../lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="./css/kitui.css">
</head>

<body>
  <div style="margin:15px;">

  </div>
  <script src="./js/kitui.js?version=1.0.1"></script>
  <script>
    kitui.ready(function() {
      kitui.require(['modal'], function(modal) {
        var _modal = new modal.default();
        console.log(_modal);
        _modal.dialog({
          shade: false,
          anim: 2,
          content: 'xx',
          title: ['这是标题', ''],
          shadeClose: false, // 关闭点击遮盖层关闭modal
          onDestroyed: function() {
            console.log('modal 销毁了.');
          },
          // 渲染成功的回调..
          onSuccessed: function(elem, index) {
            console.log("渲染成功.");
          }
        });
      });
    });
  </script>
</body>

</html>